/*
 * @Author: gaoyu gy15354315043@163.com
 * @Date: 2024-10-21 14:17:59
 * @LastEditors: gaoyu gy15354315043@163.com
 * @LastEditTime: 2024-11-09 13:58:46
 * @Description: 
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved. 
 */
import { default as request, cloud } from '@/framework/utils/request';
import { ResultData } from '@/framework/api/common';
import { GetPwdRoleType } from './types';
/**
 * @description:  修改密码
 * @return {*}
 */
export function editPassword(data: string): Promise<ResultData<null>> {
    return request({
        url: cloud.businessBasic + '/user/editPassword',
        method: 'post',
        data
    });
}
/**
 * @description:  密码策略
 * @return {*}
 */
export function getPwdRole(): Promise<ResultData<GetPwdRoleType>> {
    return request({
        url: cloud.businessBasic + '/sysConfig/pwdConfig/getPwdConfigNeedLogin',
        method: 'get'
    })
}
